/***************************************************************************
 创建者: 华磊
 开始时间: 2018.8.14
 copyright: (C) 华友高科
 修改说明: (每次有修改就添加一条，带有 修改人，修改时间，修改描述)
 example (1) hualei 2017.5.8 类的具体实现代码编写

 ***************************************************************************/
#include "ifconditionblock.h"

IfConditionBlock::IfConditionBlock()
{
}

QDataStream& operator <<(QDataStream &out,IfConditionBlock &myVector)
{
    out << (quint32)myVector.operatorType << (quint32)myVector.valueType<<
           myVector.value_i<<(quint32)myVector.variableType<<myVector.variable_i;

    return out;
}

QDataStream& operator >>(QDataStream &in,IfConditionBlock &myVector)
{
    quint32 operatorType;
    quint32 valueType;
    quint32 variableType;

    in >> operatorType >> valueType >> myVector.value_i >> variableType >> myVector.variable_i;

    myVector.operatorType = (IF_OPERATOR_TYPE)operatorType;
    myVector.valueType = (IF_COND_TYPE)valueType;
    myVector.variableType = (IF_COND_TYPE)variableType;

    return in;
}
